﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProcessSelect.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.Proj5715.Process.ProcessSelect" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <base target="_self" />
    <script>
        function setRadio(nowRadio) {
            var myForm, objRadio;
            myForm = document.forms[0];
            ///alert(myForm);
            for (var i = 0; i < myForm.length; i++) {
                if (myForm.elements[i].type == "radio") {
                    objRadio = myForm.elements[i];
                    ///alert(objRadio.name);
                    if (objRadio != nowRadio && objRadio.name.indexOf("gvProcess") > -1 && objRadio.name.indexOf("rbSelect") > -1) {
                        //alert(objRadio.name);
                        if (objRadio.checked) {
                            objRadio.checked = false;
                        }
                    }
                    else {
                        //alert("current radio button name: " + objRadio.name + " and checked status:"+objRadio.checked);
                    }
                }
            }
        }
    </script>
</head>
<body style="font-size:12px">
    <form id="form1" runat="server">
    <div style="margin:10px 10px">请选择下一步工序</div>
    <div style="text-align:center; margin-top:10px">  
        <asp:GridView ID="gvProcess" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" Font-Size="9pt" ForeColor="#333333" GridLines="Both"
            DataKeyNames="ProcessID,DeptID" onrowdatabound="gvProcess_RowDataBound" >            
            <Columns>
                <asp:TemplateField HeaderText="选择"  ItemStyle-Width="60px">
                    <ItemTemplate>
                        <asp:CheckBox ID="ckbSelect" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="工序步骤" DataField="ProcessID" ItemStyle-Width="60px"/>
                <asp:BoundField HeaderText="工序名称" DataField="ProcessName" ItemStyle-Width="300px"/>
                <asp:BoundField HeaderText="导弹型号" DataField="MissileModel" ItemStyle-Width="100px"/>
                <asp:BoundField HeaderText="车间班组" DataField="" ItemStyle-Width="120px"/>
            </Columns>
            <HeaderStyle BackColor="#DFE8F6" Font-Bold="True" ForeColor="#333333" Height="20px" />    
            <RowStyle BackColor="#FAFAFA" ForeColor="#333333" Height="20px" HorizontalAlign="Center"/>
            <EmptyDataTemplate>
                <div style="text-align:center; margin-top:20px; margin-bottom:20px;">当前没有工序数据。</div>        
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
    <div style="text-align:center; margin-top:10px">
        <asp:Button ID="btnOK" runat="server" Text="确定" onclick="btnOK_Click" />
    </div>
    </form>
</body>
</html>
